<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/pub/include.jsp" %>
<link href="<%=request.getContextPath() %>/css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jedate/jedate.min.js"></script>
<div class="header">
<h1 class="logo">富博思项目绩效管理系统</h1>
<div class="nav">
<ul>
<c:choose>
<c:when test="${not empty m}">
	<c:choose>
		<c:when test="${m=='user'}"><li class="bj">组织结构</li></c:when>
		<c:otherwise><li><a href="<c:url value="/user/index?m=user"/>">组织结构</a></li></c:otherwise>
	</c:choose>
    <c:if test="${sessionScope.user.permission.code <=4}">
        <c:choose>
            <c:when test="${m=='clazz'}"><li class="bj">项目绩效</li></c:when>
            <c:otherwise><li><a href="<c:url value="/clazz/index?m=clazz"/>">项目绩效</a></li></c:otherwise>
        </c:choose>
        <c:choose>
            <c:when test="${m=='ads'}"><li class="bj">统计报表</li></c:when>
            <c:otherwise><li><a href="<c:url value="/ads/index?m=ads"/>">统计报表</a></li></c:otherwise>
        </c:choose>
    </c:if>
	<c:choose>
		<c:when test="${m=='source'}"><li class="bj">工单管理</li></c:when>
		<c:otherwise><li><a href="<c:url value="/source/index?m=source"/>">工单管理</a></li></c:otherwise>
	</c:choose>
</c:when>
<c:otherwise>
<script type="text/javascript">
var url = document.URL;
if(url.indexOf("/user/")!=-1){
    document.write('<li class="bj">组织结构</li>');
}
else{
    document.write('<li><a href="<c:url value="/user/index?m=user"/>">组织结构</a></li>');
}
<c:if test="${sessionScope.user.permission.code <=4}">
    if(url.indexOf("/clazz/")!=-1){
        document.write('<li class="bj">项目绩效</li>');
    }
    else{
        document.write('<li><a href="<c:url value="/clazz/index?m=clazz"/>">项目绩效</a></li>');
    }
    if(url.indexOf("/ads/")!=-1){
        document.write('<li class="bj">统计报表</li>');
    }
    else{
        document.write('<li><a href="<c:url value="/ads/index?m=ads"/>">统计报表</a></li>');
    }
</c:if>
if(url.indexOf("/source/")!=-1){
	document.write('<li class="bj">工单管理</li>');
}
else{
	document.write('<li><a href="<c:url value="/source/index?m=source"/>">工单管理</a></li>');
}

</script>
</c:otherwise>
</c:choose>
</ul>
</div>
<div class="clear"></div>
<div class="king">
    <%--<p></p>--%>
<p>      欢迎登陆！ ${sessionScope.user.username}</p>
</div>
</div>